<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/5/21 0021
 * Time: 下午 2:46
 */
namespace app\index\controller;
use app\model\User;

class BaseCompanyUser extends \app\index\controller\BaseUser{


    function __construct()
    {
        parent::__construct();
        $UserModel=new User();
        $user_type=$UserModel->get_user_type_by_id($this->get_user_id());
        if($user_type!=2){
            return $this->apiJosn([],201,'企业用户才有权限操作');
        }
    }
}